/**
 * 
 */
package com.ambow.service.impl;

import java.util.List;

import com.ambow.Entity.TextBook;
import com.ambow.dao.TextBookDao;
import com.ambow.dao.impl.TextBookDaoImpl;
import com.ambow.service.TextBookService;

/**
 * @author Administrator
 *
 */
public class TextBookServiceImpl  implements TextBookService{

	/* (non-Javadoc)
	 * @see com.ambow.service.TextBookService#query(java.lang.String, java.lang.String[])
	 */
	TextBookDao t=new TextBookDaoImpl();
	@Override
	public List<TextBook> query(String sql, String[] param) {
			 return this.t.TextBookQuery(sql, param);
	}
	/* (non-Javadoc)
	 * @see com.ambow.service.TextBookService#queryOne(java.lang.String, java.lang.String[])
	 */
	@Override
	public TextBook queryOne(Class c,int id) {
		return this.t.TextBookQueryByOne(c,id);
	}
	@Override
	public TextBook queryByHql(String hql, String[] param) {
		return this.t.queryByHql(hql, param);
	}
	/* (non-Javadoc)
	 * @see com.ambow.service.TextBookService#queryAllBook(java.lang.String)
	 */
	@Override
	public List<TextBook> queryAllBook(String hql) {
		// TODO Auto-generated method stub
		return this.t.queryAllBook(hql);
	}
	/* (non-Javadoc)
	 * @see com.ambow.service.TextBookService#queryBook(java.lang.String)
	 */
	@Override
	public TextBook queryBook(String hql) {
		// TODO Auto-generated method stub
		return this.t.queryBook(hql);
	}

}
